Xbasic

Error Functions

Description

Functions for working with Xbasic errors.

Name
Description
A5_REPORTERRORTOUSER Function

Used to report an error to a user in a thread safe way - brings up a UI Message box if running in foreground thread, or generates an error if in a background thread.

a5_wrapinerrorhandler Function

Wraps a code snippet in an ON ERROR handler

ERROR_CODE_GET Function

Retreive the last error code.

ERROR_GENERATE Function

Generate a user defined error in Xbasic script or udf.

ERROR_LINE_NUMBER_GET Function

Report the line that the error occured on.

error_registered_generate Function

Generate a system or user defined error in Xbasic script or udf.

ERROR_REPORTING Function

If there is no error handler, should Xbasic errors be reported? default is TRUE.

ERROR_SCRIPT_GET Function

Report the script that the error occured in.

ERROR_TEXT_GET Function

Retreive the error text for an error code (last error code if ommitted).